FROM openshift/golang-builder@sha256:4820580c3368f320581eb9e32cf97aeec179a86c5749753a14ed76410a293d83 AS builder
ENV __doozer=update BUILD_RELEASE=202202160023.p0.g662615b.assembly.stream BUILD_VERSION=v4.10.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=10 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.10.0-202202160023.p0.g662615b.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=662615b OS_GIT_VERSION=4.10.0-202202160023.p0.g662615b.assembly.stream-662615b SOURCE_DATE_EPOCH=1639765584 SOURCE_GIT_COMMIT=662615b3427b57d8aafff6b982a7e4b34692eadc SOURCE_GIT_TAG=662615b SOURCE_GIT_URL=https://github.com/openshift/csi-driver-shared-resource-operator 
WORKDIR /go/src/github.com/openshift/shared-resources-operator
COPY . .
COPY vendor/github.com/openshift/api/sharedresource/v1alpha1/*.crd.yaml assets/
RUN make update
RUN make

FROM openshift/ose-base:v4.10.0.20220216.010142
ENV __doozer=update BUILD_RELEASE=202202160023.p0.g662615b.assembly.stream BUILD_VERSION=v4.10.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=10 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.10.0-202202160023.p0.g662615b.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=662615b OS_GIT_VERSION=4.10.0-202202160023.p0.g662615b.assembly.stream-662615b SOURCE_DATE_EPOCH=1639765584 SOURCE_GIT_COMMIT=662615b3427b57d8aafff6b982a7e4b34692eadc SOURCE_GIT_TAG=662615b SOURCE_GIT_URL=https://github.com/openshift/csi-driver-shared-resource-operator 
COPY --from=builder /go/src/github.com/openshift/shared-resources-operator/shared-resources-operator /usr/bin/
ENTRYPOINT ["/usr/bin/shared-resources-operator"]

LABEL \
        io.k8s.display-name="OpenShift Projected Shared Resources Operator" \
        io.k8s.description="The Projected Shared Resources Operator installs and maintains Projected Shared Resources CSI Driver on a cluster." \
        name="openshift/ose-csi-driver-shared-resource-operator" \
        com.redhat.component="ose-csi-driver-shared-resource-operator-container" \
        io.openshift.maintainer.product="OpenShift Container Platform" \
        io.openshift.maintainer.component="Storage" \
        io.openshift.maintainer.subcomponent="Shared Resource CSI Driver" \
        release="202202160023.p0.g662615b.assembly.stream" \
        io.openshift.build.commit.id="662615b3427b57d8aafff6b982a7e4b34692eadc" \
        io.openshift.build.source-location="https://github.com/openshift/csi-driver-shared-resource-operator" \
        io.openshift.build.commit.url="https://github.com/openshift/csi-driver-shared-resource-operator/commit/662615b3427b57d8aafff6b982a7e4b34692eadc" \
        version="v4.10.0"

